use actix_web::web;

mod category;
mod menu;
mod post;
mod tag;
mod user;

pub fn config_api(cfg: &mut web::ServiceConfig) {
    cfg.service(
        web::scope("/api")
            .configure(category::config_api_category)
            .configure(menu::config_api_menu)
            .configure(post::config_api_post)
            .configure(tag::config_api_tag)
            .configure(user::config_api_user),
    );
}
